from django.urls import path
from .views import *

urlpatterns = [
    path('authcode', RequestSmsAuthCodeView.as_view()),  # 验证码发送 /user/authcode
    path('login', LoginView.as_view()),  # 用户登陆  /user/login
    path('idcard', IdCardVerifyView.as_view()),  # 身份证验证  /user/idcard
    path('mobilechange', ChangeBindMobile.as_view()),  # 修改手机号码 /user/mobilechange
    path('users/<str:id>/info', GetUserInfoView.as_view()),  # 获取用户名片  /user/:id/info
    path('proucts/<str:id>/blocks', GetMyBlocksList.as_view()),  # 个人名下产品区块信息 /user/proucts/:id/blocks
    path('<str:id>/products', GetUserProductsListView.as_view()),  # 我的藏茶 /user/:id/products
    path('sign', SignView.as_view()),  # 签到 /user/sign
    path('update', UpdateSelfInfoView.as_view()),  # 用户信息修改 /user/update
    path('withdraw/verify', WithdrawVerifyView.as_view(), name='提现验证身份和账号'),
    path('withdraws', WithdrawLaunchView.as_view(), name='提现发起'),
    path('upload-getui-info', UploadGetuiInfoView.as_view(), name='上传个推信息'),
    path('getbalancerecord', GetUserBalanceRecordView.as_view()),  # 账户明细
    path('tunlevel', GetTunLevelView.as_view()),  # 用户等级

    # x新增
    path('transfer', TransferAccountView.as_view()),  # 转账
    path('change/purse-pwd', ModifyPursePasswordView.as_view()),  # 修改钱包密码
    path('forget/password', ForgetPursePasswordView.as_view()),   # 忘记密码
    path('history/show', HistoryShowView.as_view()),  # 转账明细
    path('set/purse-pwd', SetPursePasswordView.as_view()),  # 设置钱包密码
    path('show/purse/detail', ShowPursePasswordView.as_view()),  # 积分钱包信息
]
